let num = 0;
function delay(t) {
    return new Promise((resolve) => {
        setTimeout(() => {
            resolve();
        }, t);
    });
}

async function start() {
    while (num < 6) {
        await delay(1000);
        num++;
        console.log("🚀🚀🚀 ~ start ~ num 🙉🙊🙈", num);
    }
    throw new Error("ccdxd");
}

start();
